package com.songcan.oauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.songcan.model.business.YfkUser;
import com.songcan.oauth.mapper.YfkUserMapper;
import com.songcan.oauth.service.YfkUserService;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class YfkUserServiceImpl extends ServiceImpl<YfkUserMapper, YfkUser> implements YfkUserService {

    @Override
    public Optional<YfkUser> selectByUnionId(String unionId) {
        return Optional.ofNullable(baseMapper.selectByUnionId(unionId));
    }
}
